var config = {
    /**
     * 增删改查，api地址
     * @total 获取总条数api
     * @get   获取数据api
     * @edit  修改数据api
     *
     * model        类名
     * action       方法名 
     */
    set_url: {
        "total": { model: "goods", action: "get_goods_total" },
        "get": { model: "goods", action: "get_goods_all" },
        "edit": { model: "goods", action: "on_goods_edit" }
    },

    /**
     * 筛选配置
     * @type {Array}
     */
    select: [
        [{
            label: "开票日期",
            type: "daterange",
            field: "invoice_date",
            placeholder: "选择日期",
            span: 8,
            range: "至",
            start: "开始时间",
            end: "结束时间"
        }, {
            label: "单据日期",
            type: "daterange",
            field: "bill_date",
            placeholder: "选择日期",
            span: 8,
            range: "至",
            start: "开始时间",
            end: "结束时间"
        }, {
            label: "单据编号",
            type: "input",
            field: "bills_sn",
            placeholder: "输入单据编号",
            span: 6,
        }],
        [{
            label: "客户",
            type: "input",
            field: "client_name",
            placeholder: "客户",
            span: 8,
        }, {
            label: "发票号",
            type: "input",
            field: "invoice_number",
            placeholder: "发票号",
            span: 8,
        }, {
            label: "发票抬头",
            type: "input",
            field: "invoice_up",
            placeholder: "客户",
            span: 6,
        }]
    ],

    /**
     * 表格操作按钮配置
     * @type {Array}
     */
    action: [{
        label: "导出",
        type: "default",
        icon: "",
        callback: {
            type: "target",
            path: "/empty"
        }
    }, {
        label: "删除",
        callback: {
            type: 'message',
            url: ['goods', 'on_goods_delete'],
            params: ['goods_id'],
            config: {
                type: 'warning',
                title: '系统提示',
                content: '此操作将永久删除删除文件不可恢复，是否继续！',
                confirm: '继续',
                cancel: '取消',
                confirmTips: {
                    type: 'success',
                    message: '删除成功！',
                },
                cancelTips: {
                    type: 'info',
                    message: '您取消了删除！',
                }
            }
        },
        type: "default",
        icon: "",
    }],

    /**
     * 表格配置
     * @type {Boolean}
     */
    selection:true,
    model:"input",
    table:[{
        label: "单据日期",
        type: "input",
        field: "date",
        labelWidth:140,
        sortable: false,
        amend:false,
    },{
        label: "单据编号",
        type: "input",
        field: "bills_sn",
        labelWidth:140,
        sortable: false,
        amend:false,
    },{
        label: "客户",
        type: "input",
        field: "client_name",
        labelWidth:200,
        sortable: false,
        amend:false,
    },{
        label: "金额",
        type: "input",
        field: "money",
        labelWidth:100,
        sortable: false,
        amend:false,
    },{
        label: "开票日期",
        type: "input",
        field: "invoice_date",
        labelWidth:140,
        sortable: false,
        amend:false,
    },{
        label: "开票金额",
        type: "input",
        field: "invoice_money",
        labelWidth:140,
        sortable: false,
        amend:false,
    },{
        label: "发票号",
        type: "input",
        field: "invoice_sn",
        labelWidth:140,
        sortable: false,
        amend:false,
    },{
    	label: "发票抬头",
        type: "input",
        field: "invoice_up",
        labelWidth:140,
        sortable: false,
        amend:false,
    }],

     /**
      * 分页配置
      * @type {Object}
      */
    page:{
     	size:10,
     	current:1,
     	total:100,
    }

}
export default config